/**
 * @description qui基础样式
 * @author zhangli
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@font-face {
  font-family: Fangzheng;
  src: url('../font/font.TTF') format('truetype');
}
body {
  font-family: 'Fangzheng' !important;
  font-size: 16px !important;
  overflow-x: hidden;
  color: #2d3741;
  background-color: #f5f5f5;
  padding-top: constant(safe-area-inset-top);
  padding-left: constant(safe-area-inset-left);
  padding-right: constant(safe-area-inset-right);
  padding-bottom: constant(safe-area-inset-bottom);
}

div {
  outline: 0 !important;
  -webkit-text-size-adjust: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  position: relative;
}

input:focus,
textarea:focus,
select:focus {
  outline-offset: -1px;
  outline: -webkit-focus-ring-color auto 5px;
}

ul,
li {
  list-style: none;
}

button {
  border: 0;
  background-color: transparent;
  outline: none;
}

.qui-page {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 9;
  background-color: #eee;
}
.qui-content-padd {
  margin: 25px;
}

/*** 元素滚动 ***/
.box-scroll {
  -webkit-overflow-scrolling: touch;
}
/*** better-scroll 滚动条宽度 ***/
.bscroll-vertical-scrollbar {
  width: 8px !important;
}
/**滚动条样式**/
::-webkit-scrollbar {
  width: 2px;
  height: 2px;
  background-color: #fff;
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
  border-radius: 8px;
  background-color: #fff;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background-color: #fff;
}
.pos-box {
  position: absolute;
  z-index: 9;
  width: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  height: 100%;
}

/**
 * 动画
 */

.qui-loop {
  animation-iteration-count: infinite;
}
/**
 * 字体
 */
.qui-bold {
  font-weight: bold;
}

/**
 * 滚动条
 */
.qui-scroll-y {
  overflow-y: auto;
  overflow-x: hidden;
}
.qui-scroll-x {
  overflow-x: auto;
  overflow-y: hidden;
}
/**
 * 元素居中居右
 */
.qui-tx-c {
  text-align: center;
}

.qui-tx-r {
  text-align: right;
}

/**
 * 元素1PX边框
 */
.qui-bd-1px {
  position: relative;
  border: none;
}

.qui-bd-1px:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid #dddddd;
  width: 200%;
  height: 200%;
  -webkit-transform: scale(0.5);
  transform: scale(0.5);
  -webkit-transform-origin: left top;
  transform-origin: left top;
}

.qui-bd-t {
  position: relative;
}

.qui-bd-t:before {
  border-top: 1px solid #dddddd;
  content: ' ';
  display: block;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  -webkit-transform-origin: left top;
  transform-origin: left top;
}

.qui-bd-b {
  position: relative;
}

.qui-bd-b:after {
  border-bottom: 1px solid #dddddd;
  content: ' ';
  display: block;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  -webkit-transform-origin: left bottom;
  transform-origin: left bottom;
}

.qui-bd-l {
  position: relative;
}

.qui-bd-l:after {
  border-left: 1px solid #dddddd;
  content: ' ';
  display: block;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  -webkit-transform-origin: top left;
  transform-origin: top left;
}

.qui-bd-r {
  position: relative;
}

.qui-bd-r:after {
  border-right: 1px solid #dddddd;
  content: ' ';
  display: block;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
  -webkit-transform-origin: top right;
  transform-origin: top right;
}

/* Retina 适配 */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
  only screen and (min--moz-device-pixel-ratio: 2),
  only screen and (-o-min-device-pixel-ratio: 200/100),
  only screen and (min-device-pixel-ratio: 2) {
  .qui-bd-t:before,
  .qui-bd-b:after {
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5);
  }

  .qui-bd-l:after,
  .qui-bd-r:after {
    -webkit-transform: scaleX(0.5);
    transform: scaleX(0.5);
  }
}

@media (-webkit-device-pixel-ratio: 3) {
  .qui-bd-t:before,
  .qui-bd-b:after {
    -webkit-transform: scaleY(0.3333);
    transform: scaleY(0.3333);
  }

  .qui-bd-l:after,
  .qui-bd-r:after {
    -webkit-transform: scaleX(0.3333);
    transform: scaleX(0.3333);
  }
}

@media (-webkit-device-pixel-ratio: 4) {
  .qui-bd-t:before,
  .qui-bd-b:after {
    -webkit-transform: scaleY(0.25);
    transform: scaleY(0.25);
  }

  .qui-bd-l:after,
  .qui-bd-r:after {
    -webkit-transform: scaleX(0.25);
    transform: scaleX(0.25);
  }
}

/**
 * 字体
 */
.qui-fs-01 {
  font-size: 0.65rem;
}

.qui-fs-02 {
  font-size: 0.6rem;
}

.qui-fs-1 {
  font-size: 0.85rem;
}

.qui-fs-2 {
  font-size: 1rem;
}

.qui-fs-3 {
  font-size: 1.2rem;
}

/**
 * 元素隐藏
 */
.qui-hide {
  display: none;
}

.qui-of {
  overflow: hidden;
}

/**
 * 元素只显示一行，两行，三行多余的隐藏
 */
.qui-te {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.qui-te2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.qui-te3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/** 伸缩盒子盒子 **/

.qui-fx {
  display: flex;
}

.qui-fx-ver {
  display: flex;
  flex-direction: column;
}

/**水平垂直居中**/
.qui-fx-ac-jc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/**垂直居中**/
.qui-fx-ac {
  display: flex;
  align-items: center;
}

/**垂直居下**/
.qui-fx-ae {
  display: flex;
  align-items: flex-end;
}

/**水平居中**/
.qui-fx-jc {
  display: flex;
  justify-content: center;
}

/**水平居右**/
.qui-fx-je {
  display: flex;
  justify-content: flex-end;
}

/**水平两端对齐**/
.qui-fx-jsb {
  display: flex;
  justify-content: space-between;
}

/**水平等间距对齐**/
.qui-fx-jsa {
  display: flex;
  justify-content: space-around;
}

/**水平换行**/
.qui-fx-wp {
  display: flex;
  flex-wrap: wrap;
}

.qui-fx-f1 {
  min-width: 0px;
  flex: 1;
  position: relative;
}

.qui-fx-f2 {
  min-width: 0px;
  flex: 2;
  position: relative;
}

.qui-fx-f3 {
  min-width: 0px;
  flex: 3;
  position: relative;
}
